
#define  _CRT_SECURE_NO_WARNINGS 1		
#include <stdio.h>
int main() {
    long long n;
    scanf("%lld", &n);
    int ret = 0;
    int i = 0;
    while (n)
    {
        int tmp = n % 10;
        if (tmp % 2 == 0)
            tmp = 0;
        else if (tmp % 2 != 0)
            tmp = 1;
        ret += pow(10, i++) * tmp;
        n /= 10;
    }
    printf("%d", ret);
    return 0;
}